package com.shop.shoporder.service;

import com.alibaba.fastjson.JSONObject;
import com.shop.shoporder.common.Response;
import com.shop.shoporder.entity.order.Order;
import com.shop.shoporder.entity.order.OrderReturns;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface OrderReturnsService {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderReturns record);

    int insertSelective(OrderReturns record);

    OrderReturns selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderReturns record);

    int updateByPrimaryKey(OrderReturns record);
    OrderReturns selectByOrderNo(String orderNo);
    Response applyReturn(Map<String, String> map, HttpServletRequest request) throws  Exception;

    JSONObject reFund(Order order);

    JSONObject weChatReFund(String orderNo,String allCash,String reFondCash);
}
